package com.wl.cloud.core.dto;

import com.google.common.collect.Lists;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author: wanglin
 * @date: 2023-07-12 周三
 * @Version: 1.0
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataStoreDTO<T> implements Serializable {
    @Schema(description = "记录总数")
    private Long total = 0L;
    @Schema(description = "当前页记录")
    private List<T> rows = Lists.newArrayList();
}
